<%--
  Created by IntelliJ IDEA.
  User: 92592
  Date: 2021/7/28
  Time: 16:37
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%--文件上传三要素
        1.表单提交必须是osit
        2.表单的enctype属性必须为 multipart/from-date
        3.表单中必须有文件上传项
--%>
<form method="post" enctype="multipart/form-data" action="${pageContext.request.contextPath}/upload">
    <input type="file" name="upload">
    <br>
    <input type="text" name="name">
    <br>
    <input type="text" name="password">
    <br>
    <input type="submit" value="提交">

</form>
<img src="/upload/ff9e0c79cd5a4d42abec74884a449827_桌面.png">
</body>
</html>
